package com.raymond.client.msg;

/**
 * 默认消息
 *
 * @author :  raymond
 * @version :  V1.0
 * @date :  2021-07-15 18:18
 */
public abstract class AbstractMessage implements BaseMessage {
    /**
     * 消息流水号,顺序累加,步长为1,循环使用（一对请求和应答消息的流水号必须相同）
     */
    private int sequenceId;


    public AbstractMessage(int sequenceId) {
        this.sequenceId = sequenceId;
    }

    @Override
    public int getSequenceId() {
        return sequenceId;
    }

    public void setSequenceId(int sequenceId) {
        this.sequenceId = sequenceId;
    }
}
